<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1 style="color: rgb(188, 141, 233);">Self-introduce 自我介绍</h1>
    <script>
        let name = prompt("请输入姓名")
        let age = prompt("请输入年龄")

        function sayHi(name, age) {
            document.write("我叫" + name + "，今年" + age + "岁<br>")
        } +
        sayHi(name, age)

        let sayHello = sayHi
        sayHello("煎蛋", 18)

        let arrow = () =>
            alert("嘿嘿嘿大家好!>_< \n哈基米嘟曼卜绿~豆~ 阿西噶哈雅酷那噜!~ 哦马吉利叮咚鸡~")

        arrow()

        let aa = 10
        console.log(typeof aa)
        let bb = "okay"
        console.log(typeof bb)
        let cc = true
        console.log(typeof cc)
        let arr = [1, 2, 3, 4]
        console.log(arr)
        console.log(typeof arr)
        console.log(arr instanceof Array)

        let arr1 = new Array("aaa", "bbb", "ccc") //Array是数组的构造函数
        console.log(arr1 instanceof Array)
    </script>
</body>

</html>